#include "junix.h"

int main(int argc, char **argv)
{
	struct passwd *pwd;
	setpwent();
	int count=0;
	while(1)
	{
		pwd=getpwent();
		if(pwd==NULL)
			break;
		fprintf(stdout,"%-17s ",pwd->pw_name);
		fflush(stdout);
		++count;

		if(count%4==0)
			fprintf(stdout,"\n");

		//free(pwd);
	}
	endpwent();

	fprintf(stdout,"\n\nTotal User:%d\n",count);

	return 0;
}

